import firebase from 'firebase';
const firebaseConfig = {
  apiKey: "AIzaSyBq0fKCIBv_pC-ev0-qOXgGn1zSVaKmEbc",
  authDomain: "letters-social-server-e2bb6.firebaseapp.com",
  databaseURL: "https://letters-social-server-e2bb6.firebaseio.com",
  projectId: "letters-social-server-e2bb6",
  storageBucket: "letters-social-server-e2bb6.appspot.com",
  messagingSenderId: "784658191678",
  appId: "1:784658191678:web:75e767a0385f770764486f",
  measurementId: "G-YZNTKWV1L7"
};

const config = {
  apiKey: firebaseConfig.apiKey,
  authDomain: firebaseConfig.authDomain
}


try{
  firebase.initializeApp(config);
}catch (e) {
  console.error('初始化Firebase时出错-检查您的源代码');
  console.error(e);
}

export {firebase}
